﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace UtilsTests
{
    
    
    /// <summary>
    ///This is a test class for DirectoryExtensionsTest and is intended
    ///to contain all DirectoryExtensionsTest Unit Tests
    ///</summary>
	[TestClass()]
	public class DirectoryExtensionsTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for CopyDirectories
		///</summary>
		[TestMethod()]
		public void CopyDirectoriesTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			string pattern = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = DirectoryExtensions.CopyDirectories(src, dst, pattern, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for CopyDirectories
		///</summary>
		[TestMethod()]
		public void CopyDirectoriesTest1()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			Func<string, bool> selector = null; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = DirectoryExtensions.CopyDirectories(src, dst, selector);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for CopyDirectory
		///</summary>
		[TestMethod()]
		public void CopyDirectoryTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = DirectoryExtensions.CopyDirectory(src, dst, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for CreateDirectory
		///</summary>
		[TestMethod()]
		public void CreateDirectoryTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			DirectoryExtensions.CreateDirectory(path);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for DeleteDirectories
		///</summary>
		[TestMethod()]
		public void DeleteDirectoriesTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			Func<string, bool> selector = null; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = DirectoryExtensions.DeleteDirectories(src, dst, selector);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for DeleteDirectories
		///</summary>
		[TestMethod()]
		public void DeleteDirectoriesTest1()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			string pattern = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = DirectoryExtensions.DeleteDirectories(src, dst, pattern, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for DeleteDirectory
		///</summary>
		[TestMethod()]
		public void DeleteDirectoryTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = DirectoryExtensions.DeleteDirectory(path, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for DirectoryExists
		///</summary>
		[TestMethod()]
		public void DirectoryExistsTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = DirectoryExtensions.DirectoryExists(path);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for FindDirectories
		///</summary>
		[TestMethod()]
		public void FindDirectoriesTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			string pattern = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = DirectoryExtensions.FindDirectories(path, pattern, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for FindDirectories
		///</summary>
		[TestMethod()]
		public void FindDirectoriesTest1()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			Func<string, bool> selector = null; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = DirectoryExtensions.FindDirectories(path, selector);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for MoveDirectories
		///</summary>
		[TestMethod()]
		public void MoveDirectoriesTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			Func<string, bool> selector = null; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = DirectoryExtensions.MoveDirectories(src, dst, selector);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for MoveDirectories
		///</summary>
		[TestMethod()]
		public void MoveDirectoriesTest1()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			string pattern = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = DirectoryExtensions.MoveDirectories(src, dst, pattern, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for MoveDirectory
		///</summary>
		[TestMethod()]
		public void MoveDirectoryTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = DirectoryExtensions.MoveDirectory(src, dst, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Parent
		///</summary>
		[TestMethod()]
		public void ParentTest()
		{
			string directory = string.Empty; // TODO: Initialize to an appropriate value
			int number = 0; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = DirectoryExtensions.Parent(directory, number);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}
	}
}
